package com.project.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;

public class UserBean {
//    id
    private int id;
//    用户名
    private String userName;
//    密码
    private String password;
//    钱
    private double money;
//    生日
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;
//    电话
    private String phone;
    public UserBean(){}

    public UserBean(String userName, String password,double money,LocalDate birthday,String iphone) {
        this.userName = userName;
        this.password = password;
        this.money=money;
        this.birthday=birthday;
        this.phone=iphone;

    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getIphone() {
        return phone;
    }

    public void setIphone(String iphone) {
        this.phone = iphone;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", money=" + money +
                ", birthday=" + birthday +
                ", iphone='" + phone + '\'' +
                "}\n";
    }
}
